<%= form_remote_tag :url=>{:controller=>"view",:action=>"createmessage", :id=>object.torf_id},:update=>"m_list", :complete => "alert('邮件发送成功');window.document.getElementById('message').innerHTML='&nbsp;'"%>
<div class="userbox"><span class="medgray" valign="middle"><strong>标题：</strong></span>
<span><%=text_field 'message', 'title', :value=>object.title, :style=>"width:300px"%></span></br>
</br>
<span class="medgray"><strong>发件人：</strong></span> <span class="medgray"><%= h(object.Owner.name) %></span>
<span>&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="medgray"><strong>收件人：</strong></span>
<span class="medgray"><%if object.Torfer.anonymous==true -%>匿名用户<%else -%>
<%=h(object.Torfer.name) %><%end -%></span></div>
<div class="textbox">
<%=text_area 'message', 'body', :style=>"width:400px;height:200px" %>
<table border="0" cellpadding="0" cellspacing="0"  align=right>
	<tr>
		<td><%= submit_tag "发 送",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag%></td>
		<td><%= form_remote_tag :url=>{:controller=>"view",:action=>"hidemessage"},:update=>"message"%>
		<%= submit_tag "取 消",:class=>"btn_mouseout",
													:onmouseover=>"this.className='btn_mouseover'",
 													:onmouseout=>"this.className='btn_mouseout'",
 													:onmousedown=>"this.className='btn_mousedown'",
  													:onmouseup=>"this.className='btn_mouseup'"%><%= end_form_tag %></td>
	</tr>
</table>
</div>
